import { request } from "@/utils/http";

// 获取订单详情页数据
export const getTradeApi = () => {
  return request({
    method: "get",
    url: "/order/auth/trade",
  });
}

// /api/order/auth/submitOrder?tradeNo={tradeNo}
// 提交订单   ?tradeNo={tradeNo} 
export const submitOrderApi = ({ tradeNo, ...data }) => {
  return request({
    method: "post",
    url: "/order/auth/submitOrder",
    params: {
      tradeNo,
    },
    data,
  });
};

// 获取我的订单列表
export const reqOrderList = (page, limit) => {
  return request({
    method: 'get',
    url: `/order/auth/${page}/${limit}`,
  })
};
